﻿using System.Collections.ObjectModel; 
using TeaLightV5.Foundation.UX.Models;
using System.Windows.Input;
using Cirrious.MvvmCross.Commands;
using Conference.Core.BL.Entities;
using Conference.Core.UX.Models;

namespace Conference.Core.UX.ViewModels
{
 	public partial class SessionReadEntityViewModel : ReadEntityViewModel<SessionModel, SessionEntity> 
    { 
		   
        public SessionReadEntityViewModel()
            : base(null)
        {
        }

        public SessionReadEntityViewModel(SessionModelParameters parameters)
            : base(parameters)
        {
        }

        public override ICommand ReadCommand
        {
            get
            {
                return new MvxRelayCommand(() => RequestNavigate<SessionReadEntityViewModel>(new SessionModelParameters() { Id = Data.Id }));
            }
        }
        public override ICommand EditCommand
        {
            get
            {
                return new MvxRelayCommand(() => RequestNavigate<SessionUpdateEntityViewModel>(new SessionModelParameters() { Id = Data.Id }));
            }
        }


    }  
}
